package com.mililoan.common.bean;

import java.io.Serializable;

/**
 * 
 * @ClassName: CommonResult
 * @Description: 通用返回结果bean
 * @author YangChaofeng 2016年4月27日 下午1:43:56
 */
public class CommonResult implements Serializable {

	private static final long	serialVersionUID	= -3782830889272041864L;
	
	/**
	* Variables Name: SUCCESS
	* Description: 成功
	* Value Description: 成功
	*/
	public static final String SUCCESS="1";
	/**
    * Variables Name: FAIL
    * Description: 失败
    * Value Description: 失败
    */
	public static final String FAIL="0";

    private Object obj;     
	private String resultCode;  	// 1表示成功，非1表示其他
	private String message;  	// 描述

	public CommonResult(){
		resultCode = "1";
		message = "成功";
	}
	
	public CommonResult(String resultCode,String message){
		this.resultCode = resultCode;
		this.message = message;
	}
	
    public CommonResult(String resultCode,String message,Object obj){
        this.resultCode = resultCode;
        this.message = message;
        this.obj=obj;
    }
    
	/**
	 * 获取 resultCode
	 * 
	 * @return resultCode
	 */
	public String getResultCode() {
		return resultCode;
	}

	/**
	 * 设置 resultCode
	 * 
	 * @param resultCode
	 *            对resultCode进行赋值
	 */
	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	/**
	 * 获取 message
	 * 
	 * @return message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * 设置 message
	 * 
	 * @param message
	 *            对message进行赋值
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
     * 获取 obj
     * 
     * @return obj
     */
    public Object getObj() {
        return obj;
    }

    /**
     * 设置 obj
     * 
     * @param obj
     * 对obj进行赋值
     */
    public void setObj(Object obj) {
        this.obj = obj;
    }
}